/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

/**
 *
 * @author camilourd
 */
public class Periodo {
    
    private String nombre;
    private double demanda, demandaAnterior;
    private double at, ft, tt, it;
    private double td, tda, i, ia, ip;
    
    public Periodo () {
        nombre = "";
        demanda = demandaAnterior = 0;
        at = ft = tt = it = 0;
        td = tda = i = ia = ip = 0;
    }

    // para suavización exponencial simple
    public Periodo(String nombre, double demanda, double at) {
        this.nombre = nombre;
        this.demanda = demanda;
        this.at = at;
        ft = tt = it = demandaAnterior = 0;
        td = tda = i = ia = ip = 0;
    }
    
    // para winter multiplicativo
    public Periodo(String nombre, double demanda, double ft, double tt, double it) {
        this.nombre = nombre;
        this.demanda = demanda;
        this.ft = ft;
        this.tt = tt;
        this.it = it;
        at = demandaAnterior = 0;
        td = tda = i = ia = ip = 0;
    }
    
    // para wintercompleto
    public Periodo(String nombre, double demanda, double demandaAnterior, int m) {
        this.nombre = nombre;
        this.demanda = demanda;
        this.demandaAnterior = demandaAnterior;
        ft = tt = it = at = 0;
        td = tda = i = ia = ip = 0;
    }
    

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public double getDemanda() {
        return demanda;
    }

    public void setDemanda(double demanda) {
        this.demanda = demanda;
    }

    public double getDemandaAnterior() {
        return demandaAnterior;
    }

    public void setDemandaAnterior(double demandaAnterior) {
        this.demandaAnterior = demandaAnterior;
    }

    public double getAt() {
        return at;
    }

    public void setAt(double at) {
        this.at = at;
    }

    public double getFt() {
        return ft;
    }

    public void setFt(double ft) {
        this.ft = ft;
    }

    public double getTt() {
        return tt;
    }

    public void setTt(double tt) {
        this.tt = tt;
    }

    public double getIt() {
        return it;
    }

    public void setIt(double it) {
        this.it = it;
    }

    public double getTd() {
        return td;
    }

    public void setTd(double td) {
        this.td = td;
    }

    public double getTda() {
        return tda;
    }

    public void setTda(double tda) {
        this.tda = tda;
    }

    public double getI() {
        return i;
    }

    public void setI(double i) {
        this.i = i;
    }

    public double getIa() {
        return ia;
    }

    public void setIa(double ia) {
        this.ia = ia;
    }

    public double getIp() {
        return ip;
    }

    public void setIp(double ip) {
        this.ip = ip;
    }
    

}
